package com.spsy.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.spsy.order.mapper.TOrderMapper;
import com.spsy.order.domain.TOrder;
import com.spsy.order.service.ITOrderService;

/**
 * 订单主Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-07
 */
@Service
public class TOrderServiceImpl implements ITOrderService 
{
    @Autowired
    private TOrderMapper tOrderMapper;

    /**
     * 查询订单主
     * 
     * @param orderId 订单主主键
     * @return 订单主
     */
    @Override
    public TOrder selectTOrderByOrderId(String orderId)
    {
        return tOrderMapper.selectTOrderByOrderId(orderId);
    }

    /**
     * 查询订单主列表
     * 
     * @param tOrder 订单主
     * @return 订单主
     */
    @Override
    public List<TOrder> selectTOrderList(TOrder tOrder)
    {
        return tOrderMapper.selectTOrderList(tOrder);
    }

    /**
     * 新增订单主
     * 
     * @param tOrder 订单主
     * @return 结果
     */
    @Override
    public int insertTOrder(TOrder tOrder)
    {
        return tOrderMapper.insertTOrder(tOrder);
    }

    /**
     * 修改订单主
     * 
     * @param tOrder 订单主
     * @return 结果
     */
    @Override
    public int updateTOrder(TOrder tOrder)
    {
        return tOrderMapper.updateTOrder(tOrder);
    }

    /**
     * 批量删除订单主
     * 
     * @param orderIds 需要删除的订单主主键
     * @return 结果
     */
    @Override
    public int deleteTOrderByOrderIds(String[] orderIds)
    {
        return tOrderMapper.deleteTOrderByOrderIds(orderIds);
    }

    /**
     * 删除订单主信息
     * 
     * @param orderId 订单主主键
     * @return 结果
     */
    @Override
    public int deleteTOrderByOrderId(String orderId)
    {
        return tOrderMapper.deleteTOrderByOrderId(orderId);
    }
}
